/* 视频回忆页面样式 */
.memories-header {
    text-align: center;
    padding: 40px 0 20px;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-description {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* 电影院风格容器 */
.cinema-container {
    background-color: #111827;
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

/* 视频播放器 */
.video-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background-color: #030712;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-info {
    color: white;
    text-align: center;
    padding: 0 20px;
}

.video-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.video-description {
    color: #9CA3AF;
    max-width: 800px;
    margin: 0 auto;
}

/* 视频选择器 */
.video-selector {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: thin;
    margin-bottom: 20px;
}

.video-selector::-webkit-scrollbar {
    height: 6px;
}

.video-selector::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

.video-ticket {
    flex: 0 0 auto;
    width: 180px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-ticket:hover, .video-ticket.active {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary);
}

.ticket-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.ticket-info {
    padding: 10px;
}

.ticket-title {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-duration {
    font-size: 0.8rem;
    color: var(--gray);
}

/* 爆米花效果 */
.popcorn-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.popcorn {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50% 50% 30% 30%;
    opacity: 0;
}

/* 聚光灯效果 */
.spotlight {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(17,24,39,0) 70%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
}

/* 照片墙 */
.photos-section {
    margin: 60px 0;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-card {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 15px 10px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-overlay {
    transform: translateY(0);
}

.photo-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.photo-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 照片查看器 */
.photo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.photo-viewer.active {
    display: flex;
}

.viewer-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
}

.viewer-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.viewer-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
}

.viewer-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .photo-card {
        height: 180px;
    }
    
    .video-ticket {
        width: 140px;
    }
    
    .ticket-thumbnail {
        height: 80px;
    }
    
    .viewer-close {
        right: 0;
        top: -30px;
    }
}
